import {createRouter,createWebHashHistory,createWebHistory,createMemoryHistory} from "vue-router"
import childRouter from "./generouteRoutes"


// 1.声明routes配置

let routes =[
    {
        name:"login",
        path:"/login",
        meta :{
            name:"登入页"
        },
        component:()=>import("../pages/login/index.vue")
    },
    
    
   
    
]

// 2.创建路由
let router = createRouter({
    history:createWebHashHistory("/base"),
    routes
})

// 3.导出路由
export default router